"""EUServer URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/1.9/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  url(r'^$', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  url(r'^$', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.conf.urls import url, include
    2. Add a URL to urlpatterns:  url(r'^blog/', include('blog.urls'))
"""
from django.conf.urls import url
from django.contrib import admin

from EU import api as API

urlpatterns = [
    #url(r'^admin/', admin.site.urls),

    # 新闻接口
    url(r'^info/get_news_list',API.get_news_list),
    url(r'^info/get_news',API.get_news),


    # 景区信息
    url(r'^info/get_region',API.get_region),
    url(r'^info/get_weather',API.get_weather),
    url(r'^info/get_spot_type_list',API.get_spot_type_list),
    url(r'^info/get_all_spot',API.get_all_spot),

    # 景点信息
    url(r'^info/get_spot_list',API.get_spot_list),
    url(r'^info/get_spot',API.get_spot),
    url(r'^info/search_spot',API.search_spot),

    # 获取广播
    url(r'^info/get_broadcast',API.get_broadcast),
    url(r'^info/get_all_broadcast',API.get_all_broadcast),

    # 认证接口
    url(r'^admin/login',API.login),
    url(r'^admin/update_password',API.update_password),
    # url(r'^info/get_news_list/',eu_apis)
    url(r'^admin/post_news',API.post_news),
    url(r'^admin/update_news',API.update_news),
    url(r'^admin/delete_news',API.delete_news),

    url(r'^admin/check_code',API.check_code),
    url(r'^admin/post_broadcast',API.post_broadcast),
    url(r'^admin/delete_broadcast',API.delete_broadcast),
    url(r'^admin/update_spot_type',API.update_spot_type),

    url(r'^admin/update_spot',API.update_spot),


    # 投诉
    url(r'^feedback/post_complaints',API.post_complaints),
    url(r'^feedback/get_complaints',API.get_complaints),

]
